<?php $cur = $dt[0];?>
<form action="/website/currency" id="addshipp" class="form-horizontal" role="form" method="post">
<table class="table">
<tr><th>货币种类</th><th>货币符号</th><th>是否默认货币</th><th>汇率比</th></tr>
<?php

	$obj = unserialize($cur->set_currency);
	foreach($obj as $v):?>
	
	<tr><td><?php echo $v['currency']; ?></td><td><?php echo $v['symbol']; ?></td>
	
	<td><input type="radio" value="<?php echo $v['currency']; ?>" name="default_c" <?php echo $v['default_c'] == 1 ? 'checked=\'checked\'' : ''; ?> > </td>
	<td>
		<?php if ($v['symbol'] == '$')  { echo 1; } else { ?>
			<input type="text" name="rate_<?php echo $v['currency']; ?>" value="<?php echo $v['rate']; ?>" />
		<?php } ?>
	</td></tr>
	
<?php
	endforeach
?>

</table>


<input type="hidden" name="siteid" value="<?php echo $cur->siteid; ?>" />

<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">修改</button>
    </div>
  </div>

</form>